package com.yjzx.util.service.enums.file;

import java.util.Collections;
import java.util.List;

/**
 * @author yjzx
 * @date 2023/5/19
 * @Description
 */
public enum unknownFileTypeEnum implements FileType {
    /**
     * 未知或二进制流
     */
    UNKNOWN("", "application/octet-stream"),
    ;
    static final List<FileType> UNKNOWN_LIST = Collections.singletonList(UNKNOWN);
    private final String extension;

    private final String mimeType;

    unknownFileTypeEnum(String extension, String mimeType) {
        this.extension = extension;
        this.mimeType = mimeType;
    }

    @Override
    public String getExtension() {
        return extension;
    }

    @Override
    public String getMimeType() {
        return mimeType;
    }

}
